#include <QCoreApplication>
#include "enum.h"
#include <QStringList>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    EnumTest * p = new EnumTest();
    qDebug()<< p->getPinYin(1);
    qDebug()<< p->string2Enum("CurrentLocation",QString("toInitPoint").toUtf8());
    qDebug()<< p->string2Enum("LittlePeople",QString("selfcharging").toUtf8());
    int control =  p->string2Enum("RobotInstructions",QString("test").toUtf8());
    switch (control) {
    case EnumTest::test:
    {
        qDebug()<< p->string2Enum("RobotInstructions",QString("test").toUtf8());
        qDebug() << "hello";
        break;
    }
    default:
        break;
    }
    delete p;
    QStringList list;
    list << "B" <<"AB" <<"a";
    qDebug() << list.contains("a");
    return a.exec();
}
